package com.hethongviet.preventingmachine.models;

public class Device
{
	private long idDB = -1;

	private String name = "";
	private String number = "";
	private boolean isAlarmOn = false;
	private int maxSensors = 8;
	private int maxRelays = 8;

	public Device()
	{
	}

	public Device(String numberPhone, int maxSensors, int maxRelays)
	{
		this.setMaxSensors(maxSensors);
		this.setMaxRelays(maxRelays);
		this.number = numberPhone;
	}

	public void setNumber(String number)
	{
		this.number = number;
	}

	public String getNumber()
	{
		return number;
	}

	public long getIdDB()
	{
		return idDB;
	}

	public void setIdDB(long idDB)
	{
		this.idDB = idDB;
	}

	public int getMaxSensors()
	{
		return maxSensors;
	}

	public void setMaxSensors(int maxSensors)
	{
		this.maxSensors = maxSensors;
	}

	public boolean isAlarmOn()
	{
		return isAlarmOn;
	}

	public void setAlarmOn(boolean isAlarmOn)
	{
		this.isAlarmOn = isAlarmOn;
	}

	public int getMaxRelays()
	{
		return maxRelays;
	}

	public void setMaxRelays(int maxRelays)
	{
		this.maxRelays = maxRelays;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

}
